package cn.alibab.basic.service.impl;


import cn.alibab.basic.mapper.BizSupplierGdMapper;
import cn.alibab.basic.model.BizSupplierGd;
import cn.alibab.basic.model.BizSupplierGdExample;
import cn.alibab.basic.service.BizSupplierGdService;
import cn.alibab.cangku.model.BizSupplier;
import cn.alibab.cangku.model.BizSupplierExample;
import cn.alibab.common.model.R;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author guodan
 * @create 2020-07-16 18:00
 */
@Service
public class BizSupplierGdServiceImpl implements BizSupplierGdService {

    private final BizSupplierGdMapper bizSupplierGdMapper;

    public BizSupplierGdServiceImpl(BizSupplierGdMapper bizSupplierMapper) {
        this.bizSupplierGdMapper = bizSupplierMapper;
    }
    public R find(){
        BizSupplierGdExample example = new BizSupplierGdExample();
        example.createCriteria();
        List<BizSupplierGd> bizSupplierGds = bizSupplierGdMapper.selectByExample(example);
        return R.ok(bizSupplierGds);
    }
}
